import request from '@/utils/request.js'
/**
 *
 * @param {用户的设置新增和修改} params
 */
export function userAdd (params) {
  return request({
    url: '/systemanage/systemUser/userAdd',
    method: 'post',
    data: JSON.stringify(params),
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

/**
 *
 * @param {用户的列表} params
 */
export function userList (params) {
  return request({
    url: '/systemanage/systemUser/userList',
    method: 'post',
    data: JSON.stringify(params),
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
/**
 *
 * @param {用户的删除} params
 */
export function userDel (params) {
  return request({
    url: '/systemanage/systemUser/userDel',
    method: 'post',
    params
  })
}
/**
 *
 * @param {用户的详情查看} params
 */
export function userDetails (params) {
  return request({
    url: '/systemanage/systemUser/userDetails',
    method: 'post',
    params
  })
}
/**
 *
 * @param {用户-重置密码} params
 */
export function forgetUserPwdTwo (params) {
  return request({
    url: '/systemanage/systemUser/forgetUserPwdTwo',
    method: 'post',
    params
  })
}
